SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].gspNews_INSERT
(
@title AS nvarchar(150) = null,
@content AS nvarchar(MAX) = null,
@isDeleted AS bit = null,
@isVisible AS bit = null,
@createDate AS datetime = null,
@lastModifiedDate AS datetime = null
)
AS

INSERT INTO
  [dbo].[News]
(
  [Title],
  [Content],
  [IsDeleted],
  [IsVisible],
  [CreateDate],
  [LastModifiedDate]
)
VALUES
(
  @title,
  @content,
  @isDeleted,
  @isVisible,
  @createDate,
  @lastModifiedDate
)

SELECT SCOPE_IDENTITY()

GO
